<!DOCTYPE html>
<html class="um landscape min-width-240px min-width-320px min-width-480px min-width-768px min-width-1024px">
<head>
    <title><!--航站通告航站通告航站通告--></title>
    <meta charset="utf-8">
    <meta name="viewport" content="target-densitydpi=device-dpi, width=device-width, initial-scale=1, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
     <link rel="stylesheet" href="css/ui-base.css">
    <link rel="stylesheet" href="css/ui-box.css">
	<link rel="stylesheet" href="css/project/style.css">
	<link rel="stylesheet" href="css/zv_common.css">
    <script src="js/zy_control.js"></script>
	<script src="js/zy_click.js"></script>
	<script src="js/zy_json.js"></script>
	<script src="js/main.js"></script>
	<script src="js/init.js"></script>
	<script src="js/talkingdata.js"></script>
	<style>
	.zv_noticebo{  border-bottom:1px solid #e5e5e5;}
	.zv_noticefont1{height:2.2em;line-height:2.2em;color:#fe0202;font-size:0.925em; overflow:hidden;white-space:nowrap; text-overflow:ellipsis;}
	.zv_noticefont2{ height:2.2em;line-height:2.2em;color:#a3a3a3;}
	.zv_noticefont3{height:2.2em;line-height:2.2em;color:#a3a3a3; font-size:0.925em;width:6em;white-space:nowrap; overflow:hidden;  }
		/*tab切换样式*/
	.uinn-hnfn2{
		padding:0.78em 0;
	}
	/*
 以上样式同notice-content.html样式
*/
	.zv_noticefont4{height:2em;line-height:2em;color:#000;white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-weight:bolder;font-size:0.85em;}
	</style>
</head>
<body class="ub um-vp c-wh2 ub-ver" ontouchstart>
<div id="time_0" style="width:6em"></div>
<div id="page_0" class="up ub ub-ver" tabindex="0"  >
		<div class="ub c-wh1" id="sliding" style=" position:fixed; top:0;background-color:#E1EAF7;z-index:1000; width:100%; height:auto;" >
						<div class="ub ub-ac us-hnfn ub-f1 c-wh1" style="z-index:1000;">
							<input class="uhide" type="radio" id="type1" name="type" checked="checked" >
							<div class=" ub-f1 tx-c uinn-hnfn2 ulev0 fontcolor"   id="type1"  style="width:50%"  onmousedown="zy_touch('',zy_for)" ontouchstart="zy_touch('',zy_for)" onclick="notice('1')">分子公司通告</div>
							
							<input class="uhide" type="radio" id="type2" name="type" >
							<div class=" ub-f1 tx-c fontcolor uinn-hnfn2 ulev0"   id="type2" style="width:50%"   onmousedown="zy_touch('',zy_for)" ontouchstart="zy_touch('',zy_for)" onclick="notice('2')">航站通告</div>
						</div>
		</div>	
		<div id="top_heght" style="padding:0; margin:0"></div><!-- 滑动高度设置 -->
		<div  id="noticeList" style=" z-index:1" >
		</div>
		<div id="exit"   style="display:none;" >
			<div style="height:0.5em"> </div>
			<div id="exit1" ontouchstart="zy_touch(\'zv-btn-act\')" class="zvbtn  c-blu1  t-wh tx-c uc-a1 zvbtnpadding"  onclick="exit1()" >下一页</div>
			<div id="exit2" ontouchstart="zy_touch(\'zv-btn-act\')" class="zvbtn  c-blu1  t-wh tx-c uc-a1 zvbtnpadding"  onclick="exit2()" >下一页</div>
			<div style="height:0.5em"> </div>
		</div>	
		<input type="hidden" id="pageNum1" value="1">
		<input type="hidden" id="pageNum2" value="1">
	</div>   
</body>
<script>
zy_init();
var titHeight = $$("sliding").offsetHeight;

$$("sliding").style.Height =titHeight;   
$$("top_heght").innerHTML='<div style="padding:0; margin:0; height:'+titHeight+'px;"></div>';
window.uexOnload=function(type){
	if(!type){
		uexWindow.setBounce("0");
		Loading(0);
		uexEMM.setEvent("1","{'一体化业务通告':'一体化业务通告列表'}");
		IC.talkingDataCount("一体化业务通告","0008");
		//checkUserRole(ZV_EMPLOYEE_NUMBER,'BTN_4_12',function(){noticeList(0,0,20);});
		noticeList(0,0,20);
		//noticeList(0,0,20);
	}
}


function notice(id)
{
   if(id=='2')
	{
	Loading(0);
	//checkUserRole(ZV_EMPLOYEE_NUMBER,'BTN_4_13',function(){noticeList(1,0,20);});
	noticeList(1,0,20);
	//noticeList(1,0,20);
	$$("pageNum1").value=1;
	}
	else 
	{
	Loading(0);
	//checkUserRole(ZV_EMPLOYEE_NUMBER,'BTN_4_12',function(){noticeList(0,0,20);});
	noticeList(0,0,20);
	//noticeList(0,0,20);
	$$("pageNum2").value=1;
	}
	//document.getElementById("noticeList").innerHTML="";
}
function exit1(){
	IC.talkingDataCount("一体化业务通告","0008");
	Loading(0);
	var pageNum1 = $$("pageNum1").value;
	var nextPageNum1 = parseInt(pageNum1)+1;
	$$("pageNum1").value=nextPageNum1;
	var exitval1=nextPageNum1*20
	noticeList(0,0,exitval1);
}
function exit2(){
	IC.talkingDataCount("一体化业务通告","0008");
	Loading(0);
	var pageNum2 = $$("pageNum2").value;
	var nextPageNum2 = parseInt(pageNum2)+1;
	$$("pageNum2").value=nextPageNum2;
	var exitval2=nextPageNum2*20
	noticeList(1,0,exitval2);
}
function noticeList(inout,startPage,pageNum){
	localStorage.setItem("inout",inout);
	var wsdl = integration_list_url
    var nameSpace = integration_list_nameSpace
	var paras = "inout|startPage|pageNum";
	var values =inout + '|' + startPage + '|' + pageNum;
	var method = integration_list_function
	currentJosn(wsdl,nameSpace,paras,values,method);	
}
function returnjson(currentJosnStr){
		var w = document.body.offsetWidth;
		var zv_noticefont3w = document.getElementById("time_0").offsetWidth;
		var titleW = w-zv_noticefont3w;
			var inout=	localStorage.getItem("inout");
		    var  obj = currentJosnStr;
			obj = strToJson(obj);
		    var objdata = obj[0].data;
			var strx = "";		
			for(var i=0;i<objdata.length;i++)	
			 {
			 		var CreateDate = objdata[i].CreateDate;
					var a = CreateDate.split(" ");
					var CreateDate = a[0];
					var time = CreateDate.split("/");
					var year=time[0]
					var month=time[1]
					if(month<10)
					{
						month=0+''+month
					}
					var date=time[2]
					if(date<10)
					{
						date=0+''+date
					}
					CreateDate=year+'/'+month+'/'+date
					
					
					strx += '<div class="ub uinn umh2 zv_noticebo" ontouchstart="zy_touch(\'zvbtn-act\')" style=" z-index:-1" onclick=openUrl("'+objdata[i].Id+'")>'
					strx += '<div class="ub-f2  ub ub-ver">'
    				strx += '<div class=" zv_noticefont1" style="width:'+titleW+'px">'+objdata[i].ActualTitle+'a</div>'
        			strx += '</div>'
   					strx += '<div id="time_'+i+'" class="ub-f1  tx-r  ulev-1 zv_noticefont3">'+CreateDate+'</div>'
    				strx += '</div>'
			 }
			Loading(-1);
			$$("noticeList").innerHTML=strx;
			if(inout==1)
			{
			    var pageNum = $$("pageNum2").value;	
			}
			else{
			 	var pageNum = $$("pageNum1").value
			}
			var exitval1=pageNum*20
			
			if(objdata.length!=exitval1)
			{		
				$$("exit").style.display = "none";   
			}
			else
			{		
				$$("exit").style.display = "block";   
				
				if(inout==1)
				{
					$$("exit1").style.display = "none";   
					$$("exit2").style.display = "block";   
				}
				else
				{
					$$("exit1").style.display = "block";   
					$$("exit2").style.display = "none";   
				}
			}
}
function openUrl(Id)
{
	IC.talkingDataCount("一体化业务通告","0008");
	Loading(0);
	uexEMM.setEvent("1","{'一体化业务通告':'一体化业务通告详情'}");
	var wsdl = integration_content_url 
    var nameSpace =integration_content_nameSpace
	var paras = "id";
	var values =Id;
	var method =integration_content_function
	contentJosn(wsdl,nameSpace,paras,values,method,"integration_notice_detail","integration_notice_detail.html");
}

</script>
</html>
